rules: [
  {
    test: /\.css$/,
    use: [MiniCssExtractPlugin.loader, "css-loader"],
  },
],

// url-loader
use: {
  loader: "url-loader",
  options: {
    limit: 10 * 1024,
  },

// html-loader
{
  test: /.html$/,
  use: {
    loader: "html-loader",
    options: {
      attributes: {
        list: [
          {
            tag: "img",
            attribute: "src",
            type: "src",
          },
          {
            tag: "link",
            attribute: "href",
            type: "srcset",
          },
        ],
      },
    },
  },
},